/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.swt.mto.thithu.model;

import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;

import java.io.Serializable;

/**
 * The base model interface for the Result service. Represents a row in the &quot;mto_thithu_Result&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This interface and its corresponding implementation {@link com.swt.mto.thithu.model.impl.ResultModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.swt.mto.thithu.model.impl.ResultImpl}.
 * </p>
 *
 * @author tuan.nguyen
 * @see Result
 * @see com.swt.mto.thithu.model.impl.ResultImpl
 * @see com.swt.mto.thithu.model.impl.ResultModelImpl
 * @generated
 */
public interface ResultModel extends BaseModel<Result> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. All methods that expect a result model instance should use the {@link Result} interface instead.
	 */

	/**
	 * Returns the primary key of this result.
	 *
	 * @return the primary key of this result
	 */
	public long getPrimaryKey();

	/**
	 * Sets the primary key of this result.
	 *
	 * @param primaryKey the primary key of this result
	 */
	public void setPrimaryKey(long primaryKey);

	/**
	 * Returns the result ID of this result.
	 *
	 * @return the result ID of this result
	 */
	public long getResultId();

	/**
	 * Sets the result ID of this result.
	 *
	 * @param resultId the result ID of this result
	 */
	public void setResultId(long resultId);

	/**
	 * Returns the quiz ID of this result.
	 *
	 * @return the quiz ID of this result
	 */
	public long getQuizId();

	/**
	 * Sets the quiz ID of this result.
	 *
	 * @param quizId the quiz ID of this result
	 */
	public void setQuizId(long quizId);

	/**
	 * Returns the user ID of this result.
	 *
	 * @return the user ID of this result
	 */
	public long getUserId();

	/**
	 * Sets the user ID of this result.
	 *
	 * @param userId the user ID of this result
	 */
	public void setUserId(long userId);

	/**
	 * Returns the user uuid of this result.
	 *
	 * @return the user uuid of this result
	 * @throws SystemException if a system exception occurred
	 */
	public String getUserUuid() throws SystemException;

	/**
	 * Sets the user uuid of this result.
	 *
	 * @param userUuid the user uuid of this result
	 */
	public void setUserUuid(String userUuid);

	/**
	 * Returns the user name of this result.
	 *
	 * @return the user name of this result
	 */
	@AutoEscape
	public String getUserName();

	/**
	 * Sets the user name of this result.
	 *
	 * @param userName the user name of this result
	 */
	public void setUserName(String userName);

	/**
	 * Returns the num sentence correct of this result.
	 *
	 * @return the num sentence correct of this result
	 */
	public int getNumSentenceCorrect();

	/**
	 * Sets the num sentence correct of this result.
	 *
	 * @param numSentenceCorrect the num sentence correct of this result
	 */
	public void setNumSentenceCorrect(int numSentenceCorrect);

	/**
	 * Returns the total sentence of this result.
	 *
	 * @return the total sentence of this result
	 */
	public int getTotalSentence();

	/**
	 * Sets the total sentence of this result.
	 *
	 * @param totalSentence the total sentence of this result
	 */
	public void setTotalSentence(int totalSentence);

	/**
	 * Returns the score of this result.
	 *
	 * @return the score of this result
	 */
	public double getScore();

	/**
	 * Sets the score of this result.
	 *
	 * @param score the score of this result
	 */
	public void setScore(double score);

	public boolean isNew();

	public void setNew(boolean n);

	public boolean isCachedModel();

	public void setCachedModel(boolean cachedModel);

	public boolean isEscapedModel();

	public Serializable getPrimaryKeyObj();

	public void setPrimaryKeyObj(Serializable primaryKeyObj);

	public ExpandoBridge getExpandoBridge();

	public void setExpandoBridgeAttributes(ServiceContext serviceContext);

	public Object clone();

	public int compareTo(Result result);

	public int hashCode();

	public CacheModel<Result> toCacheModel();

	public Result toEscapedModel();

	public String toString();

	public String toXmlString();
}